package com.jay.base.thread.NewThreadType;

/**
 * Created by caoyuan7 on 2019/7/18.
 */
public class Demo2 implements Runnable {

    @Override
    public void run() {
        while(true) {
            System.out.println("thread running ...");
        }
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new Demo2());
        thread.start();
    }

}
